﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameAutomationLibrary
{
    /// <summary>
    /// 
    /// </summary>
    public class HumanitySetting
    {
        private static Random _r = new Random();

        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public static long GetHumanityDelay()
        {
            return GetHumanityDelay(1,5);
        }

        /// <summary>
        /// 
        /// </summary>
        /// <param name="minSecond"></param>
        /// <param name="maxSecond"></param>
        /// <returns></returns>
        public static long GetHumanityDelay(int minSecond,int maxSecond)
        {
            int second = maxSecond - minSecond;
            return minSecond + (long)((_r.NextDouble() * Math.Abs(second)) * 10000000);
        }
    }
}
